using System;
using System.Collections;
namespace DalatCooking.Core
{
    public class Person
    {
        public int PersonId { get; set; }       
        public string UserName { get; set; }
        public string Password { get; set; }
        public string PasswordNew { get; set; }
        public string Email { get; set; }
        public bool IsActive { get; set; }
        public int LoginFailed { get; set; }
        public DateTime LastLoginDate { get; set; }
        public DateTime LastChangePassword { get; set; }
        public DateTime DateCreated { get; set; }
        public bool IsDeleted { get; set; }
        public Profile Profile { get; set; }
        
        public bool IsInRole(string role)
        {
            return Roles.Contains(role);
        }
        public ArrayList Roles { get; set; }
       
    }
}